import 'package:flutter/cupertino.dart';
import 'package:get/get.dart';

class SearchMiddleware extends GetMiddleware {
  @override
  RouteSettings? redirect(String? route) {
    // return null; // 正常放行，不做拦截

    return const RouteSettings(name: '/login', arguments: {'text': '我来自中间件拦截'});
  }
}
